hipreme_engine v1.0.14 (2023-12-23T18:43:10Z)
Dub
Repo
FileProgression
hip
util
file
Undocumented in source.
version(HipDStdFile)
class
FileProgression {
protected
ulong
progress
;
protected
uint
stepSize
;
protected
ulong
fileSize
;
protected
void
delegate
(
ref
ubyte
[]
data
)
onFinish
;
protected
void
delegate
(
float
progress
)
onUpdate
;
ubyte
[]
fileData
;
ubyte
[]
buffer
;
File
target
;
this
(string filePath, uint readSteps, uint bytes);
void
setOnFinish
(void delegate(ref ubyte[] data) onFinish);
void
setOnUpdate
(void delegate(float progress) onUpdate);
bool
update
();
float
getProgress
();
ulong
readSize
[@property getter];
ulong
size
[@property getter];
string
toString
();
}
Constructors
this
this
(string filePath, uint readSteps, uint bytes)
If bytes == 0, it will use readsteps.
Members
Functions
getProgress
float
getProgress
()
Undocumented in source. Be warned that the author may not have intended to support it.
setOnFinish
void
setOnFinish
(void delegate(ref ubyte[] data) onFinish)
Undocumented in source. Be warned that the author may not have intended to support it.
setOnUpdate
void
setOnUpdate
(void delegate(float progress) onUpdate)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string
toString
()
Undocumented in source. Be warned that the author may not have intended to support it.
update
bool
update
()
Undocumented in source. Be warned that the author may not have intended to support it.
Properties
readSize
ulong
readSize
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
ulong
size
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
buffer
ubyte
[]
buffer
;
Undocumented in source.
fileData
ubyte
[]
fileData
;
Undocumented in source.
fileSize
ulong
fileSize
;
Undocumented in source.
onFinish
void
delegate
(
ref
ubyte
[]
data
)
onFinish
;
Undocumented in source.
onUpdate
void
delegate
(
float
progress
)
onUpdate
;
Undocumented in source.
progress
ulong
progress
;
Undocumented in source.
stepSize
uint
stepSize
;
Undocumented in source.
target
File
target
;
Undocumented in source.
Meta
Source
See Implementation
hip
util
file
classes
FileProgression
functions
fileTruncate
getFileContent
stripLineBreaks